package com.适配器模式.类适配器;

public class Phone {

    /**
     * 手机充电
     */
    public void charging(Volate5VInterface volate5VInterface){
        if (volate5VInterface.output5V()==5){
            System.out.println("电压是5V~~~~~~~可以充电");
        }else if (volate5VInterface.output5V()>5){
            System.out.println("电压太大!!!!!!!!!!");
        }

    }
}
